package com.noname.lib_base_java.util;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

/**
 * Author: Lmoumou
 * Date: 2018-12-10 14:50
 * 文件名: ToastUtil
 * 描述:
 */
public class ToastUtil {
    private static ToastUtil instance = null;

    public static ToastUtil getInstance() {
        synchronized (ToastUtil.class) {
            if (instance == null) {
                instance = new ToastUtil();
            }
            return instance;
        }
    }

    public  void showNormal(Context context, String msg) {
        Toast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.BOTTOM, 0, 50);
        toast.show();
    }
}
